extends Node
@warning_ignore_start("unused_signal")
const debug:bool=false

##other to emit
signal display_str(str:String)
##other to emit
signal display_word(word:String)
##other to emit
signal takeplace_dialogue(dia_name:String)
##other to emit
signal display_tip(tip:String)
##other to recv
signal dialogue_finished
##other to recv
signal display_string_finished

##other to emit
signal player_movment_mode(mode:String)
##other to emit
signal player_walk_speed(speed:float)
##other to emit
signal player_animation_event(event:String)
##other to emit
signal player_fable(v:bool)
##other to emit
signal player_suspend_rush(dir:Vector2,strength:float)
##other to recv
signal player_suspend_change(status:bool)#true is enter
##other to emit
signal set_player_skin(skin:CompressedTexture2D)
##other to emit
signal set_player_life(l:int)
##other to emit
signal player_should_death
##other read only
var has_player:bool=false
var player_position:Vector2
var player_velocity:Vector2
var player_screen_pos:Vector2
var player_life:int

signal set_background_color(col:Color)

signal save_game_level
var save_path:String="res://save/begin.tscn"
var save_dictionary:String="res://save/"

var enter:PackedScene
var enter_said_should_restart:bool=false

##other to emit
signal camera_effect(str:String)

var passed_game:bool=false

var fighting:bool=false#can not setting

var mouse_position:Vector2
func _ready() -> void:
	self.process_mode=Node.PROCESS_MODE_ALWAYS
	if not debug:
		save_dictionary=OS.get_user_data_dir()+"/"
		save_path=OS.get_user_data_dir()+"/begin.tscn"
@warning_ignore("unused_parameter")
func _process(delta: float) -> void:
	mouse_position = get_viewport().get_mouse_position()
